<?php
/*=============================================================================
|| ##################################################################
||	phpFoX Konsort
|| ##################################################################
||
||	Copyright		: (C) 2005-2007 PHPFOX Limited a Reality Fox Creation
||	Contact			: info@phpfox.com
||
||	- phpFoX and all of its source code and files are protected by Copyright Laws.
||
||	- The license for phpFoX permits you to install this software on a single domain (.com, .org, .net, etc.).
||
||	- You may also not remove this copyright screen which shows the copyright information and credits for phpFoX (RealityFOX Creations).
||
||	- phpFoX Konsort is NOT a FREE software - http://www.phpfox.com/license/
||
|| ##################################################################
=============================================================================*/

/* $File: ./include/settings/common.sett.php, $Author:  $ */

/** Application specific settings
 * @package config
 * @version $Id: common.sett.php 427 2008-04-08 17:18:19Z phpfoxsv $
 */
global $_CONF;

// DEBUG SETTINGS \\

/**
 * General Debug Mode will report any and all PHP errors
 */
$_CONF['debug'] = false;

if ('192.168.1.1' == $_SERVER['REMOTE_ADDR']) {

    $_CONF['debug'] =false;

}

$_CONF['debug.ajax'] = false;

/**
 * Debug emails
 * This setting will print out the email content being sent
 */
$_CONF['debug.email'] = false;

/**
 * Will display all classes being loaded in the HTML layout
 */
$_CONF['debug.display.classes'] = false;

/**
 * Will display {%} before and after a language phrase set.
 * This is used to debug the language package.
 */
$_CONF['debug.language.phrases'] = false;

$_CONF['debug.sql.query'] = false;

//url
$_CONF['url']   =  $_CONF['http'].$_CONF['host'];

//admin panel URL
$_CONF['moduleUrl'] = array
(
	'admin' 	=> 'adminpanel',
	'blog' 		=> 'blog',
	'gallery' 	=> 'gallery',
	'browse' 	=> 'browse',
	'forum' => (file_exists($_CONF['path'] . 'plugins/vbulletin/phpfox_functions.php') ? 'vb-forums' : 'forum')
);

$_CONF['adminHttp'] = false;

$_CONF['useAjax'] = true;

//template
$_CONF['template']['dir']   = $_CONF['path'] . (defined('PHPFOX_DEFAULT_DIR') ? PHPFOX_DEFAULT_DIR : '') . 'design/templates';
$_CONF['template']['c_dir'] = $_CONF['path'].'file/templates_c';
$_CONF['template']['p_dir'] = $_CONF['path'].'file/templates_p';
$_CONF['template']['image'] = $_CONF['url'].'pic/';
$_CONF['template']['url']   = $_CONF['url'];

/**
 * NOTICE: If you change this setting you must also modify your .htaccess file to reflect your new setting
 */
$_CONF['get_path_var'] = 'do';

$_CONF['user.pending.lifetime'] = 7; //days -- user pending lifetime (for 2-step registration)

//system paths
$_CONF['music.album.pic.path'] = $_CONF['path'].'file/pic/album/';
$_CONF['music.album.pic.url']  = $_CONF['url']. 'file/pic/album/';
$_CONF['gallery.pic.path']    = $_CONF['path'].'file/pic/gallery/';
$_CONF['gallery.pic.url']     = $_CONF['url']. 'file/pic/gallery/';
$_CONF['groups.pic.path']     = $_CONF['path'].'file/pic/groups/gallery/';
$_CONF['groups.pic.url']      = $_CONF['url']. 'file/pic/groups/gallery/';
$_CONF['user.pic.path']       = $_CONF['path'].'file/pic/user/';
$_CONF['user.pic.url']        = $_CONF['url']. 'file/pic/user/';
$_CONF['membership.pic.path'] = $_CONF['path'].'file/pic/membership/';
$_CONF['membership.pic.url']  = $_CONF['url']. 'file/pic/membership/';
$_CONF['user_bg.pic.path']    = $_CONF['path'].'file/pic/user_bg/';
$_CONF['user_bg.pic.url']     = $_CONF['url']. 'file/pic/user_bg/';
$_CONF['forum.pic.path']      = $_CONF['path'].'file/pic/forum/';
$_CONF['forum.pic.url']       = $_CONF['url']. 'file/pic/forum/';
$_CONF['watermark.path']      = $_CONF['path'].'file/pic/watermark/';
$_CONF['style.path']          = $_CONF['path'].'file/style/';
$_CONF['style.url']           = $_CONF['url']. 'file/style/';
$_CONF['smile.path']          = $_CONF['path'].'file/smile/';
$_CONF['smile.url']           = $_CONF['url']. 'file/smile/';
$_CONF['flag.pic.path']       = $_CONF['path'].'file/flag/';
$_CONF['flag.pic.url']        = $_CONF['url']. 'file/flag/';
$_CONF['chat.log.path']       = $_CONF['path'].'file/cache/chat';
$_CONF['cache.config']			= 'config.php';
$_CONF['music.url']          = $_CONF['url'].'file/music_folder/';
$_CONF['music.path']          = $_CONF['path'].'file/music_folder/';
$_CONF['music.player.url']    = $_CONF['url'].'file/player/mp3player.swf';
$_CONF['music.player.php']    = $_CONF['url'].'file/player/index.php';
$_CONF['video.image.url']          = $_CONF['url'].'file/videos/image/';
$_CONF['video.image.path']          = $_CONF['path'].'file/videos/image/';
$_CONF['video.url']          = $_CONF['url'].'file/videos/src/';
$_CONF['video.path']          = $_CONF['path'].'file/videos/src/';
$_CONF['backup.path'] = $_CONF['path'] . 'file/backups/';
$_CONF['chat.path'] = $_CONF['path'] . 'file/chat/';

$_CONF['music.album.min_width']  = 20;
$_CONF['music.album.min_height'] = 20;

// only for big pictures
$_CONF['music.album.width']  = 200;
$_CONF['music.album.height'] = 200;

$_CONF['Mod_Music.featured_songs']      = 10;
$_CONF['Mod_Music.featured_musicians']  = 10;
$_CONF['Mod_Music.top_requested_songs'] = 10;
$_CONF['Mod_Music.latest_uploads']      = 10;

$_CONF['Mod_Music.pager_size'] = array
(
    10  => 10,        // Default page size!!!
    20  => 20,
    30  => 30,
    50  => 50,
    100 => 100,
);

$_CONF['Mod_Music.default.admin.pagesize'] = 20;

$_CONF['Mod_Music.musicians_browse_letters'] = range('a', 'z');

$_CONF['music_player'] = array
(
	'autostart' => "false", // (true,false)
	'repeat' => "false", // (true,false,list)
	'shuffle' => "false", // (true,false)
	'backcolor' => "0xFFFFFF",
	'frontcolor' => "0x000000",
	'lightcolor' => "0x000000",
);

$_CONF['Mod_Video.md5'] = "278365756242343456783";

$_CONF['Mod_Video.stream_sources'] = array
(
	array
	(
		'id' => 1,
		'name' => 'YouTube',
		'url' => 'youtube\.com',
		'image' => true,
		'import' => true,
	),
	array
	(
		'id' => 2,
		'name' => 'Google',
		'url' => 'google\.com',
		'image' => true,
		'import' => false,
	),
	array
	(
		'id' => 3,
		'name' => 'Myspace',
		'url' => 'myspace\.com',
		'image' => false,
		'import' => false,
	),
	array
	(
		'id' => 6,
		'name' => 'Break',
		'url' => 'break\.com',
		'image' => true,
		'import' => false,
	),
	array
	(
		'id' => 7,
		'name' => 'Spike',
		'url' => 'spike\.com',
		'image' => true,
		'import' => false,
	),
	array
	(
		'id' => 0,
		'name' => 'Direct Stream',
		'url' => '',
		'image' => false,
		'import' => false,
	)
);

//flag parameters
$_CONF['flag.max_h']    = 13;
$_CONF['flag.max_w']    = 20;
$_CONF['flag.min_h']    = 0;
$_CONF['flag.min_w']    = 0;
$_CONF['flag.max_size'] = 1024;

//user pic sizes
$_CONF['user.pic.sizes'] = array(20, 50, 60, 75, 100, 120);

//plugins info:

//im
$_CONF['plugin.im.name']   = 'messenger';
$_CONF['plugin.im.url']    = $_CONF['url'].'plugins/messenger/php121im.php';

//chat
$_CONF['plugin.chat.name'] = 'chat';
$_CONF['plugin.chat.url']  = $_CONF['url'].'plugins/chat/flashchat.php';

$_CONF['plugin.mp3.tablename']  = 'phpfox_media';
$_CONF['plugin.mp3.tablename2'] = 'music';
$_CONF['plugin.mp3.filepath']   = $_CONF['path'].'file/source/';

//public area
$_CONF['public.pagesize']           = 9;
$_CONF['public.quiz.pagesize']      = 10;
$_CONF['public.top_size']           = 50;
$_CONF['public.battle_leaders']     = 20;
$_CONF['public.bloggers_count']     = 8;
$_CONF['public.new_blogs_count']    = 5;
$_CONF['public.featured_events']    = 6;
$_CONF['public.event_guests_count'] = 8;
$_CONF['public.calendar_events']    = 6;
$_CONF['public.day_events_count']   = 10;
$_CONF['public.gallery_top_rating'] = 9.00;
$_CONF['public.gallery_new_days']   = 1;
$_CONF['public.poll_list_count']    = 6;
$_CONF['public.member_polls_count'] = 8;
$_CONF['public.approve_polls_cnt']  = 8;
$_CONF['public.comments_count']     = 5;
$_CONF['public.mypage.gallery']     = 2;
$_CONF['public.account.small.board']     = 5;

$_CONF['public.browse.new_members_days'] = 3 * 86400;

$_CONF['title_delim'] = ' &#187; ';

//images
$_CONF['image.min_w']   = 20;
$_CONF['image.min_h']   = 20;
$_CONF['image.types']   = array('jpg','png','gif');

//smiles
$_CONF['smilie']['max_w'] = 40;
$_CONF['smilie']['max_h'] = 40;
$_CONF['smilie']['min_w'] = 5;
$_CONF['smilie']['min_h'] = 5;
$_CONF['smilie']['max_s'] = 2048;
$_CONF['smilie']['type'] = array('gif');

//admin area
$_CONF['admin.pagesize']  = 20;
$_CONF['admin.banipsize'] = 8;

$_CONF['seen']['new'] = '';
$_CONF['seen']['viewed'] = 2;
$_CONF['seen']['guess'] = 3;
$_CONF['user_max_online'] = 5; //in sec
$_CONF['shoutbox.lim']  = 8;
$_CONF['chat.wait']  = 100; //in sec

//application areas
$_CONF['app.areas'] = array('public', 'admin');

// reserved names -- should be rewritten for user pages
$_CONF['url.reserved_names'] = array
(
	'admin',
	'public',
	'account',
	'blog',
	'event',
	'forum',
	'gallery',
	'groups',
	'listing',
	'poll',
	'popup',
	'quiz',
	'user',
	'music',
    'alert',
    'archive',
    'block-user',
    'browse',
    'browsers',
    'check-im',
    'contact-us',
    'content',
    'denied',
    'forgotpass',
    'rss',
    'forgotpass-verify',
    'im',
    'login',
    'logout',
    'randimage',
    'randimagesite',
    'signup',
    'subscribe',
    'top-user',
    'verify',
    'under-construction',
    'notfound',
    'error',
    'videos',
    'javascript',
    'cron',
    'webmessenger',
	'data',
);

$_CONF['modules'] = array
(
	'Mod_Comments',
	'Mod_Messenger',
	'Mod_Event',
	'Mod_Forum',
	'Mod_Site',
	'Mod_Listing',
	'Mod_Quiz',
	'Mod_Menu',
	'Mod_Chat',
	'Mod_Poll',
	'Mod_Shoutbox',
	'Mod_Blog',
	'Mod_Log',
	'Mod_Smiles',
	'Mod_Admin',
	'Mod_Ads',
	'Mod_Gallery',
	'Mod_Account',
	'Mod_Bulletin',
	'Mod_Groups',
	'Mod_Video',
	'Mod_Music',
	'Mod_Tag',
	'Mod_Rss',
	'Mod_Language',
	'Mod_Products',
	'Mod_Install',
);

$_CONF['Mod_Account.privacy'] = array
(
	'everyone',
	'friends',
	'nobody',
);

$_CONF['Mod_Menu.switch_heighlight'] = array
(
	'public.gallery.battle-list' => 'public.gallery.battle',
);

// PayPal settings
$_CONF['paypal.http'] = 'https://';   // real - https://
$_CONF['paypal.host'] = 'www.paypal.com'; // real - www.paypal.com
$_CONF['paypal.path'] = '/cgi-bin/webscr'; // real - /cgi-bin/webscr
$_CONF['paypal.port'] = '443'; // real - 443

if ( isset($_CONF['db']['prefix']) )
{
	define("db_prefix",$_CONF['db']['prefix']);
}
else
{
	$_CONF['db']['prefix'] = "";
}

if ( isset($_SESSION['debug']) )
{
	$_CONF['debug'] = 1;
}

// Special BBCode replace has ( Used in Text.class.php)
$_CONF['Mod_Site.bbcode.hash'] = md5("3s862528463254394");

define("dbClass", "mysql");
define("thisProduct","konsort");
define("cachedDir",$_CONF['path'] . "file/cache/");
define("cacheUrl",$_CONF['url'] . "file/cache/");
define("cacheEncode", false);
define("cacheSecret", "UUT75466443TTRDSWE");

// Enable WYSIWYG Editor
$_CONF['wysiwyg_enabled_pages'] = "public/event/view.html, public/popup/emoteicons.html, public/groups/forum/posts.html, public/groups/forum/topic.html, public/forum/posts.html, public/forum/topic-post.html, public/user/guestbook/index.html, public/user/gallery/view.html, public/user/blogs/view.html, public/gallery/view.html, public/blog/view.html, public/user/index.html, public/account/bulletin/compose.html, public/account/submit/add-blog.html, public/account/messages/compose.html, public/account/myitems/blog/edit.html, public/music/album.html, public/music/song.html, public/groups/edit.html";

// Should we even use the WYSIWYG (TinyMCE)
$_CONF['wysiwyg_on'] = true;

// Popup size height for chat window with the IM
$_CONF['im_chat_height'] = '680';

// Popup size width for chat window with the IM
$_CONF['im_chat_width'] = '550';

// What HTML tags are allowed for the Chat and IM module
$_CONF['chat_allowed_html'] = '<span>, <font>, <b>, <u>, <i>, <strong>, <em>';

// Allow style="" tag; Needed for WYSIWYG and Safari
$_CONF['html_allow_style'] = true;

$_CONF['social_bookmarks'] = array
(
	array
	(
		'link' => 'http://digg.com/submit?phase=2&url=[LINK]&title=[TITLE]',
		'image' => 'digg.png',
		'title' => 'Digg'
	),
	array
	(
		'link' => 'http://del.icio.us/post?url=[LINK]&title=[TITLE]',
		'image' => 'delicious.png',
		'title' => 'Del.icio.us'
	),
	array
	(
		'link' => 'http://www.facebook.com/sharer.php?u=[LINK]&t=[TITLE]',
		'image' => 'facebook.gif',
		'title' => 'Facebook'
	),
	array
	(
		'link' => 'http://www.furl.net/storeIt.jsp?t=[TITLE]&u=[LINK]',
		'image' => 'furl.gif',
		'title' => 'Furl'
	),
	array
	(
		'link' => 'http://ma.gnolia.com/bookmarklet/add?url=[LINK]&title=[TITLE]',
		'image' => 'magnolia.png',
		'title' => 'Magnolia'
	),
	array
	(
		'link' => 'http://www.stumbleupon.com/submit?url=[LINK]&title=[TITLE]',
		'image' => 'su.png',
		'title' => 'StumbleUpon'
	),
	array
	(
		'link' => 'http://www.google.com/bookmarks/mark?op=edit&bkmk=[LINK]&title=[TITLE]',
		'image' => 'goog.png',
		'title' => 'Google'
	),
	array
	(
		'link' => 'http://myweb2.search.yahoo.com/myresults/bookmarklet?t=[TITLE]&u=[LINK]',
		'image' => 'yahoo-myweb.png',
		'title' => 'Yahoo MyWeb'
	)
);

$_CONF['csrf_enabled'] = false;
$_CONF['csrf_hash'] = 'kl39s72ur8362ust3';

$_CONF['aLangCharReplace']= array
(
	// Turkish
	'Ş' => 's',
	'ş' => 's',
	'Ü' => 'U',
	'ü' => 'u',
	'Ö' => 'O',
	'ö' => 'o',
	'Ç' => 'C',
	'ç' => 'c',
	'Ğ' => 'G',
	'ğ' => 'g',
	'İ' => 'I',
	'ı' => 'i',
	
	// Lithuanian
	'Ą' => 'A',
	'ą' => 'a',
	'Č' => 'C',
	'č' => 'c',
	'�?' => 'E',
	'ę' => 'e',
	'Ė' => 'E',
	'ė' => 'e',
	'Į' => 'I',
	'į' => 'i',
	'Š' => 'S',
	'š' => 's',
	'Ų' => 'U',
	'ų' => 'u',
	'Ū' => 'U',
	'ū' => 'u',
	'Ž' => 'Z',
	'ž' => 'z',
			
	// Swedish
	'ö' => 'o',
	'ä' => 'a',
	'å' => 'a',
	
	// Polish
	'Ą' => 'A',
	'ą' => 'a',
	'�?' => 'E',
	'ę' => 'e',
	'Ó' => 'O',
	'ó' => 'o',
	'Ć' => 'C',
	'ć' => 'c',
	'Ł' => 'L',
	'ł' => 'l',
	'Ń' => 'N',
	'ń' => 'n',
	'Ś' => 'S',
	'ś' => 's',
	'Ź' => 'Z',
	'ź' => 'z',
	'Ż' => 'Z',
	'ż' => 'z'
);

?>